package com.junxian.springboot03.common;

import redis.clients.jedis.Jedis;

/**
 * jedis的测试类
 */
public class JedisTest {

    public static void main(String[] args) {
//        new一个jedis对象
        Jedis jedis = new Jedis("192.168.31.90", 6379);
        jedis.auth("123456");
        jedis.set("jedis", "jedis test value");
        System.out.println(jedis.get("jedis"));
        System.out.println(jedis.ping());
    }


}
